package com.jdd.modules.visitorLog.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jdd.modules.visitorLog.entity.VisitorLog;
import com.jdd.modules.visitorLog.mapper.VisitorLogMapper;
import com.jdd.modules.visitorLog.service.IVisitorLogService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 访客记录
 * @Author: jdd
 * @Date:   2022-04-08
 * @Version: V1.0
 */
@Service
public class VisitorLogServiceImpl extends ServiceImpl<VisitorLogMapper, VisitorLog> implements IVisitorLogService {

    @Override
    public IPage<VisitorLog> findAllVisitorLog(Page<VisitorLog> page, VisitorLog visitorLog) {
        IPage<VisitorLog> completeInfo = baseMapper.findAllVisitorLog(page,visitorLog);
        return completeInfo;
    }
    @Override
    public List<VisitorLog> getVisitNum(List<String> projectCodes) {
        return baseMapper.getVisitNum(projectCodes);
    }
}
